<template>
  <div class="circle">
    <div class="wrapper">
      <div class="search">
        <van-icon name="arrow-left" />
        <input type="text" placeholder="xiaopiu" v-model="value" />
        <img src="../../assets/icons/search.png" alt />
      </div>
    </div>
    <h3 class="title">相关文章</h3>
    <div class="content">
      <div class="content-item" v-for="(item,index) in contentList" :key="index">
        <div class="thumb">
          <img :src="require('../../assets/img/thumb.png')" alt="" class="thumb-img">
        </div>
        <div class="desc">
          <p>产品原型设计与团队实时协作平台"xiaopiu"获数百万天使投资</p>
          <span class="bottom">xiaopiu</span>
          <span class="footer">Zaker 2018-5-3</span>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data () {
    return {
      value: 'xiaopiu',
      contentList: [1, 2, 3, 4]
    }
  },
  created () {},
  methods: {}
}
</script>

<style lang="less" scoped>
.circle {
  background-color: rgba(229, 229, 229, 1);
  padding-top: 40px;
  .wrapper {
    width: 100%;
    height: 40px;
    left: 0px;
    top: 0px;
    position: fixed;
    background-color: #fff;
    .search {
      margin-top: 7px;
      padding: 0px 10px;
      display: flex;
      justify-content: space-around;
      .van-icon-arrow-left::before {
        line-height: 26px;
      }
      input {
        width: 100%;
        margin: 0px 7px;
        text-indent: 25px;
        color: rgba(56, 56, 56, 1);
        background-color: rgba(229, 229, 229, 1);
        border-radius: 4px;
        font-size: 14px;
      }
    }
  }
  .title {
    margin-top: 1px;
    height: 40px;
    line-height: 40px;
    text-indent: 14px;
    color: rgba(80, 80, 80, 1);
    background-color: #fff;
    font-size: 13px;
    font-weight: normal;
  }
  .content {
    .content-item {
      display: flex;
      height: 114px;
      margin-top: 10px;
      padding: 12px 0 0 14px;
      background-color: #fff;
      .thumb {
        width: 60px;
        height: 60px;
        background-color: #fff;
        margin-right: 12px;
        .thumb-img{
          width:60px;
          height: 60px;
        }
      }
      .desc {
        display: flex;
        flex-direction: column;
        p {
          width: 276px;
          height: 54px;
          left: 86px;
          top: 127px;
          color: rgba(51, 51, 51, 1);
          font-size: 15px;
          line-height: 150%;
          text-align: left;
        }
        .bottom {
          width: 65px;
          height: 20px;
          left: 104px;
          top: 183px;
          color: rgba(113, 113, 113, 1);
          font-size: 13px;
          line-height: 150%;
          text-align: left;
        }
        .footer {
          width: 232px;
          height: 24px;
          left: 86px;
          top: 203px;
          color: rgba(202, 202, 202, 1);
          font-size: 12px;
          line-height: 150%;
          text-align: left;
        }
      }
    }
  }
}
</style>
